package com.lh.glassmuseum.util;

public class AuthResult {
    private int code;
    private Object data;
    private String message;

    public boolean isOk(){
        return this.getCode() == 0;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
